package com.hfy.admin.mapper;

import com.hfy.model.dto.admin.ApplyMusicDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @ author 韩
 * time: 2024/7/14 23:10
 */
@Mapper
public interface ApplyMapper {

    @Select("INSERT INTO `apply_album` (`album_id`, `music_count`) VALUES (#{albumId}, #{musicCount})")
    void insertAlbum(@Param("albumId") Integer albumId, @Param("musicCount") int musicCount);

    void insertAlbumMusic(@Param("applyAlbumId") Integer applyAlbumId, @Param("list") List<ApplyMusicDto> dtos);
}
